import request from '../utils/request'
// 获取全部分类
export function HomeCategoryHead () {
  return request({
    url: '/home/category/head',
    method: 'get'
  })
}
// 获取一级分类
export function Category (id) {
  return request({
    url: '/category',
    params: { id }
  })
}
// 获取二级分类
export function categorySubFilter (id) {
  return request({
    url: '/category/sub/filter',
    params: { id }
  })
}
